<%--
  Created by IntelliJ IDEA.
  User: Yang
  Date: 2021/10/28
  Time: 16:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html lang="zh">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>房间添加</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/views/static/common/layui/css/layui.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/views/static/admin/css/roomadd.css">
    <script src="${pageContext.request.contextPath}/views/static/common/layui/layui.js"></script>
    <style>
        body{
            color: #E5DFD5;!important;
            background-color: rgba(255,255,255,0) !important;
        }
        .login{
            border-radius: 10px 10px;
        }
        select{
            width: 100%;
            border-radius: 2px;
            height: 35px;
            color: grey;
            border: 0px;
            outline: none;
            margin-bottom: 25px;
        }
        input{
            border-radius: 10px;
            margin-bottom: 25px;
        }
    </style>
</head>

<body id="login">

<div class="login">
    <h2> <strong><font face="仿宋" >BYTE酒店房间添加</font></strong></h2>
    <div style="color: red;text-align: center" id="msg">${msg}</div>
    <%--    表单加上target="_blank"，会打开新窗口--%>
    <form class="layui-form" method="post"  action="${pageContext.request.contextPath}/roomAdd" >

        <div class="layui-form-item">
            <input type="text" name="number" required  lay-verify="required" placeholder="请输入房间号" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-item">
            <select name="category" style="display: block">
                <option value="">&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp请选择房间分类</option>
                <c:forEach items="${list}" var="item">
                    <option value="${item.roomCategoryId}">${item.roomCategoryName}</option>
                </c:forEach>
            </select>
        </div>
        <div class="layui-form-item">
            <input type="text" name="price" required  lay-verify="required" placeholder="请输入房间价格" autocomplete="off" class="layui-input">
        </div>

        <div class="layui-form-item">
            <button style="width: 100%" class="layui-btn layui-btn-radius layui-btn-normal" lay-submit lay-filter="login" >添加</button>
        </div>

        <br>
    </form>

</div>

</body>

</html>


